using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ShakeReportResponse : GeneratedMessageLite<ShakeReportResponse, ShakeReportResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ShakeReportResponse, ShakeReportResponse.Builder>
		{
			private bool resultIsReadOnly;
			private ShakeReportResponse result;
			protected override ShakeReportResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ShakeReportResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ShakeReportResponse DefaultInstanceForType
			{
				get
				{
					return ShakeReportResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public SKBuiltinBuffer_t Buffer
			{
				get
				{
					return this.result.Buffer;
				}
				set
				{
					this.SetBuffer(value);
				}
			}
			public uint Ret
			{
				get
				{
					return this.result.Ret;
				}
				set
				{
					this.SetRet(value);
				}
			}
			public uint ImgId
			{
				get
				{
					return this.result.ImgId;
				}
				set
				{
					this.SetImgId(value);
				}
			}
			public uint ImgTotoalLen
			{
				get
				{
					return this.result.ImgTotoalLen;
				}
				set
				{
					this.SetImgTotoalLen(value);
				}
			}
			public Builder()
			{
				this.result = ShakeReportResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ShakeReportResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ShakeReportResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ShakeReportResponse other = this.result;
					this.result = new ShakeReportResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ShakeReportResponse.Builder Clear()
			{
				this.result = ShakeReportResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ShakeReportResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ShakeReportResponse.Builder(this.result);
				}
				return new ShakeReportResponse.Builder().MergeFrom(this.result);
			}
			public override ShakeReportResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ShakeReportResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is ShakeReportResponse)
				{
					return this.MergeFrom((ShakeReportResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ShakeReportResponse.Builder MergeFrom(ShakeReportResponse other)
			{
				return this;
			}
			public override ShakeReportResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ShakeReportResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ShakeReportResponse._shakeReportResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ShakeReportResponse._shakeReportResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 18u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
						if (num3 == 18u)
						{
							SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
							if (this.result.hasBuffer)
							{
								builder2.MergeFrom(this.Buffer);
							}
							input.ReadMessage(builder2, extensionRegistry);
							this.Buffer = builder2.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 24u)
						{
							this.result.hasRet = input.ReadUInt32(ref this.result.ret_);
							continue;
						}
						if (num3 == 32u)
						{
							this.result.hasImgId = input.ReadUInt32(ref this.result.imgId_);
							continue;
						}
						if (num3 == 40u)
						{
							this.result.hasImgTotoalLen = input.ReadUInt32(ref this.result.imgTotoalLen_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ShakeReportResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public ShakeReportResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public ShakeReportResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public ShakeReportResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public ShakeReportResponse.Builder SetBuffer(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBuffer = true;
				this.result.buffer_ = value;
				return this;
			}
			public ShakeReportResponse.Builder SetBuffer(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBuffer = true;
				this.result.buffer_ = builderForValue.Build();
				return this;
			}
			public ShakeReportResponse.Builder MergeBuffer(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBuffer && this.result.buffer_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.buffer_ = SKBuiltinBuffer_t.CreateBuilder(this.result.buffer_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.buffer_ = value;
				}
				this.result.hasBuffer = true;
				return this;
			}
			public ShakeReportResponse.Builder ClearBuffer()
			{
				this.PrepareBuilder();
				this.result.hasBuffer = false;
				this.result.buffer_ = null;
				return this;
			}
			public ShakeReportResponse.Builder SetRet(uint value)
			{
				this.PrepareBuilder();
				this.result.hasRet = true;
				this.result.ret_ = value;
				return this;
			}
			public ShakeReportResponse.Builder ClearRet()
			{
				this.PrepareBuilder();
				this.result.hasRet = false;
				this.result.ret_ = 0u;
				return this;
			}
			public ShakeReportResponse.Builder SetImgId(uint value)
			{
				this.PrepareBuilder();
				this.result.hasImgId = true;
				this.result.imgId_ = value;
				return this;
			}
			public ShakeReportResponse.Builder ClearImgId()
			{
				this.PrepareBuilder();
				this.result.hasImgId = false;
				this.result.imgId_ = 0u;
				return this;
			}
			public ShakeReportResponse.Builder SetImgTotoalLen(uint value)
			{
				this.PrepareBuilder();
				this.result.hasImgTotoalLen = true;
				this.result.imgTotoalLen_ = value;
				return this;
			}
			public ShakeReportResponse.Builder ClearImgTotoalLen()
			{
				this.PrepareBuilder();
				this.result.hasImgTotoalLen = false;
				this.result.imgTotoalLen_ = 0u;
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int BufferFieldNumber = 2;
		public const int RetFieldNumber = 3;
		public const int ImgIdFieldNumber = 4;
		public const int ImgTotoalLenFieldNumber = 5;
		private static readonly ShakeReportResponse defaultInstance;
		private static readonly string[] _shakeReportResponseFieldNames;
		private static readonly uint[] _shakeReportResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasBuffer;
		private SKBuiltinBuffer_t buffer_;
		private bool hasRet;
		private uint ret_;
		private bool hasImgId;
		private uint imgId_;
		private bool hasImgTotoalLen;
		private uint imgTotoalLen_;
		private int memoizedSerializedSize = -1;
		public static ShakeReportResponse DefaultInstance
		{
			get
			{
				return ShakeReportResponse.defaultInstance;
			}
		}
		public override ShakeReportResponse DefaultInstanceForType
		{
			get
			{
				return ShakeReportResponse.DefaultInstance;
			}
		}
		protected override ShakeReportResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public SKBuiltinBuffer_t Buffer
		{
			get
			{
				return this.buffer_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public uint Ret
		{
			get
			{
				return this.ret_;
			}
		}
		public uint ImgId
		{
			get
			{
				return this.imgId_;
			}
		}
		public uint ImgTotoalLen
		{
			get
			{
				return this.imgTotoalLen_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.hasBuffer && this.hasRet && this.hasImgId && this.BaseResponse.IsInitialized && this.Buffer.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasBuffer)
				{
					num += CodedOutputStream.ComputeMessageSize(2, this.Buffer);
				}
				if (this.hasRet)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.Ret);
				}
				if (this.hasImgId)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.ImgId);
				}
				if (this.hasImgTotoalLen)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.ImgTotoalLen);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ShakeReportResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] shakeReportResponseFieldNames = ShakeReportResponse._shakeReportResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, shakeReportResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasBuffer)
			{
				output.WriteMessage(2, shakeReportResponseFieldNames[1], this.Buffer);
			}
			if (this.hasRet)
			{
				output.WriteUInt32(3, shakeReportResponseFieldNames[4], this.Ret);
			}
			if (this.hasImgId)
			{
				output.WriteUInt32(4, shakeReportResponseFieldNames[2], this.ImgId);
			}
			if (this.hasImgTotoalLen)
			{
				output.WriteUInt32(5, shakeReportResponseFieldNames[3], this.ImgTotoalLen);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasBuffer)
			{
				num ^= this.buffer_.GetHashCode();
			}
			if (this.hasRet)
			{
				num ^= this.ret_.GetHashCode();
			}
			if (this.hasImgId)
			{
				num ^= this.imgId_.GetHashCode();
			}
			if (this.hasImgTotoalLen)
			{
				num ^= this.imgTotoalLen_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			ShakeReportResponse shakeReportResponse = value as ShakeReportResponse;
			return shakeReportResponse != null && (this.hasBaseResponse == shakeReportResponse.hasBaseResponse && (!this.hasBaseResponse || this.baseResponse_.Equals(shakeReportResponse.baseResponse_))) && (this.hasBuffer == shakeReportResponse.hasBuffer && (!this.hasBuffer || this.buffer_.Equals(shakeReportResponse.buffer_))) && (this.hasRet == shakeReportResponse.hasRet && (!this.hasRet || this.ret_.Equals(shakeReportResponse.ret_))) && (this.hasImgId == shakeReportResponse.hasImgId && (!this.hasImgId || this.imgId_.Equals(shakeReportResponse.imgId_))) && (this.hasImgTotoalLen == shakeReportResponse.hasImgTotoalLen && (!this.hasImgTotoalLen || this.imgTotoalLen_.Equals(shakeReportResponse.imgTotoalLen_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ShakeReportResponse, ShakeReportResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<ShakeReportResponse, ShakeReportResponse.Builder>.PrintField("Buffer", this.hasBuffer, this.buffer_, writer);
			GeneratedMessageLite<ShakeReportResponse, ShakeReportResponse.Builder>.PrintField("Ret", this.hasRet, this.ret_, writer);
			GeneratedMessageLite<ShakeReportResponse, ShakeReportResponse.Builder>.PrintField("ImgId", this.hasImgId, this.imgId_, writer);
			GeneratedMessageLite<ShakeReportResponse, ShakeReportResponse.Builder>.PrintField("ImgTotoalLen", this.hasImgTotoalLen, this.imgTotoalLen_, writer);
		}
		public static ShakeReportResponse ParseFrom(byte[] data)
		{
			return ShakeReportResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ShakeReportResponse MakeReadOnly()
		{
			return this;
		}
		public static ShakeReportResponse.Builder CreateBuilder()
		{
			return new ShakeReportResponse.Builder();
		}
		public override ShakeReportResponse.Builder ToBuilder()
		{
			return ShakeReportResponse.CreateBuilder(this);
		}
		public override ShakeReportResponse.Builder CreateBuilderForType()
		{
			return new ShakeReportResponse.Builder();
		}
		public static ShakeReportResponse.Builder CreateBuilder(ShakeReportResponse prototype)
		{
			return new ShakeReportResponse.Builder(prototype);
		}
		static ShakeReportResponse()
		{
			ShakeReportResponse.defaultInstance = new ShakeReportResponse().MakeReadOnly();
			ShakeReportResponse._shakeReportResponseFieldNames = new string[]
			{
				"BaseResponse",
				"Buffer",
				"ImgId",
				"ImgTotoalLen",
				"Ret"
			};
			ShakeReportResponse._shakeReportResponseFieldTags = new uint[]
			{
				10u,
				18u,
				32u,
				40u,
				24u
			};
			object.ReferenceEquals(micromsg.Proto.ShakeReportResponse.Descriptor, null);
		}
	}
}
